package file.Pra;

import java.io.File;
import java.io.IOException;

public class FileMD {
    public static void main(String[] args) throws IOException{
//        for (int i = 0; i < 10; i++) {
//            File file = new File("C:\\Users\\13175250825\\Desktop\\学学\\powerbyyjp\\src\\file\\" + i + ".txt");
//            if (file.exists()){
//                System.out.println(1);
//            }else {
//                file.createNewFile();
//                System.out.println(2);
//            }
//
//        }
        for (int i = 0; i < 10; i++) {
            File file = new File("C:\\Users\\13175250825\\Desktop\\学学\\powerbyyjp\\src\\file\\" + i + ".txt");
            if (file.exists()){
                file.delete();
            }else {
                System.out.println(1);
            }
        }

    }
}
